<?php print $this->doctype()?>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="pl" lang="pl">
<head>
	<?php
		print $this->headBase();
    	print $this->headMeta();
    	print $this->headTitle();
    	print $this->headScript();
    	print $this->headLink();
    	print $this->headStyle();
    ?>
</head>

<body>

<div class="container_24">
	<div id="top" class="grid_24">
		<h1 class="logo"><a href="">Wojt Bud Sp. z o.o.</a></h1>
	</div>
	<div id="head" class="grid_24">
		<div class="grid_8 push_16">
			<div class="wrapper">
				<h4>Szukaj na stronie</h4>
				<form action="/search" method="get">
					<input type="text" name="find" />
					<input type="submit" value="GO" class="submitButton" />
				</form>
			</div>
		</div>
	</div>
	<div id="main" class="grid_24">
		<div class="wrap clearfix">
			<div id="menu-heigth" class="grid_12 alpha">
				<div id="menu">
					<?php print $this->partial('_partial/head.phtml')?>
				</div>
				<p>&nbsp;</p>
			</div>

			<div class="grid_11 push_1 omega" id="falsh">
				<div id="galleryImageRand" style="display:none;">
				<?php
				
					/* @var $galleryImage Promotor_View_Helper_GalleryImage */
					$galleryImage = $this->getHelper('GalleryImage');
					print $galleryImage->galleryImage(1, '_partial/imageRand.phtml');
				
					/* @var $galleryAlbum Promotor_View_Helper_GalleryAlbum */
//					$galleryAlbum = $this->getHelper('GalleryAlbum');
//					print $galleryAlbum->galleryAlbum('prezentacja')
//									   ->setAlbumType('autoviewer')
//									   ->render('_partial/galleryAlbum.phtml');
				?>
				</div>
				<div id="imgRandFrame"></div>
			</div>

			<div id="maincontent" class="grid_24 alpha omega clearfix">
				<div id="main-main">
					<div class="wrapper">
						<p class="breadcrumb clearfix">
							<b>Obecnie znajdujesz się w:</b>
							<?php
								/* @var $nav Zend_View_Helper_Navigation_Breadcrumbs */
								$nav =  $this->getHelper('site')
											 ->get('navigation')
											 ->getViewHelperNavigation('breadcrumbs');
								
								$nav->setMinDepth(-1);
											 
								$cot = $nav->getContainer();
								
								// znajdz aktywną stronę!
								if (null != ($page = $cot->findBy('alias', $this->urlParams('alias')))) {
									$page->setActive(true);
								}
								
								if ($this->urlParams('module') == 'gallery') {
							?>
								<a href="/">Strona główna</a>&nbsp;<a href="/gallery">Galeria</a>
							<?php
								} else {
									print $nav->setLinkLast(true)->setSeparator('&nbsp;')->render();
								}
							?>
						</p>

						<?php print $this->layout()->content?>
					</div>
				</div>
			</div>
		</div>
	</div>
	<div id="foot" class="grid_12 alpha omega">
		<a class="link" href="">Wojt Bud Sp. z o.o.</a>
		<p class="info">&copy; 2009  Wojt Bud Sp. z o.o.</p>
	</div>
</div>

<?php print $this->inlineScript()?>
</body>
</html>